#include<func.h>
void * sigfunc(void * p)
{
    char *q=(char*)p;
    strcpy(q,"hello");
    printf("child\n");
    pthread_exit((void *)q);
}
int main()
{
    pthread_t pthid;
    char *p=(char*)malloc(100);
    char *a;
    int ret=pthread_create(&pthid,NULL,sigfunc,p);
    THREAD_ERR_CHECK(ret,"pthread_create")
    ret=pthread_join(pthid,(void **)&a);
    printf("main,get %s\n",a);
    return 0;

}